package com.wyh.domain.po.groupOne.resource;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@ApiModel("资源子表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("resource_sub")
public class ResourceSub implements Serializable {
    @ApiModelProperty(name = "主键", required = true)
    @NotNull
    private Integer id;

    @ApiModelProperty(name = "父资源id", required = true)
    @NotNull
    private Integer resourceid;

    @ApiModelProperty(name = "资源名称", required = true)
    private String name;

    @ApiModelProperty(name = "建筑面积", required = true)
    private Double buildingarea;

    @ApiModelProperty(name = "套内面积", required = true)
    private Double insidearea;

    @ApiModelProperty(name = "资源编号", required = true)
    private String number;

    @ApiModelProperty(name = "变更类型", required = true)
    private Integer changeType;

    @ApiModelProperty(name = "变更时间", required = true)
    private Date changeTime;
    @ApiModelProperty(name = "操作类型", required = true,example = "split 表示拆分，merge 表示合并")
    private String operationType;
}
